import request from '@/utils/request'

// 查询项目信息列表
export function listProjects(query) {
  return request({
    url: '/business/projects/list',
    method: 'get',
    params: query
  })
}

// 查询项目信息所有列表
export function listAllProjects(query) {
  return request({
    url: '/business/projects/listAll',
    method: 'get',
    params: query
  })
}

// 查询项目信息详细
export function getProjects(id) {
  return request({
    url: '/business/projects/getInfo/' + id,
    method: 'get'
  })
}

// 新增项目信息
export function addProjects(data) {
  return request({
    url: '/business/projects/add',
    method: 'post',
    data: data
  })
}

// 修改项目信息
export function updateProjects(data) {
  return request({
    url: '/business/projects/edit',
    method: 'post',
    data: data
  })
}

// 删除项目信息
export function delProjects(id) {
  return request({
    url: '/business/projects/remove/' + id,
    method: 'get'
  })
}
